{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "62f0579c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2021-09-27 20:29\n",
      "周一下午有课\n",
      "8-9节 大英 9-302\n"
     ]
    }
   ],
   "source": [
    "from datetime import datetime\n",
    "#定义这个月几号所对应的星期几\n",
    "Monday = [6,13,20,27]\n",
    "Tuesday = [7,14,21,28]\n",
    "Wednesday = [8,15,22,29]\n",
    "Thursday = [9,16,23,30]\n",
    "Friday = [3,10,17,24]\n",
    "Saturday = [4,11,18,25]\n",
    "Sunday = [5,12,19,26]\n",
    "\n",
    "now =  datetime.today().day \n",
    "time = datetime.now().strftime(\"%Y-%m-%d %H:%M\") \n",
    "# 表示当前时间\n",
    "\n",
    "#运用if else输出课表\n",
    "if now in Monday:\n",
    "    print(time)\n",
    "    print(\"周一下午有课\");print(\"8-9节 大英 9-302\")\n",
    "elif now in Tuesday:\n",
    "    print(time)\n",
    "    print(\"周二下午有课\");print(\"8-9节 H5 3实308\")\n",
    "elif now in Wednesday:\n",
    "    print(time)\n",
    "    print(\"周三有课\");print(\"4-5节 大英 9-202\");print(\"12-14节 创业实践基础 1-402\")\n",
    "elif now in Thursday:\n",
    "    print(time)\n",
    "    print(\"周四有课\");print(\"4-5节 python 综合楼612\");print(\"8-9节 毛概实践 9-307\");print(\"12-14节 毛概理论 9-201\")\n",
    "elif now in Friday:\n",
    "    print(time)\n",
    "    print(\"周五上午有课\");print(\"4-5节 AI 综合楼612\")\n",
    "elif now in Saturday:\n",
    "    print(time)\n",
    "    print(\"Rest.\")\n",
    "else:\n",
    "    print(\"明天又是周一了呜呜呜\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ad986440",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
